/*csd*/define(function(require,exports,module){"use strict";var a=require("console");function d(f){var g="";switch(f.code){case FileError.QUOTA_EXCEEDED_ERR:g="QUOTA_EXCEEDED_ERR";break;case FileError.NOT_FOUND_ERR:g="NOT_FOUND_ERR";break;case FileError.SECURITY_ERR:g="SECURITY_ERR";break;case FileError.INVALID_MODIFICATION_ERR:g="INVALID_MODIFICATION_ERR";break;case FileError.INVALID_STATE_ERR:g="INVALID_STATE_ERR";break;default:g="Unknown Error";break;}a.log("Error: "+f.code+" ; "+g);}var c=exports.option={type:0,size:104857600};var b=null;var e=exports.use=function(g,f){if(b&&g){return g(b);}window.requestFileSystem=window.requestFileSystem||window.webkitRequestFileSystem;if(!window.requestFileSystem){if(f){f();}return d("no support file system.");}window.requestFileSystem(c.type,c.size,function(h){b=h;g(b);},function(h){if(f){f(h);}d(h);});};});